﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="V_Commments.ascx.cs" Inherits="UserControls_V_Commments" %>

<table width="680px">
    <tr>
        <td colspan="3" style="height: 691px">
            <asp:DataList ID="DLMessage" runat="server" CellPadding="4" ForeColor="#333333">
                <ItemTemplate>
                    <table align="center" cellpadding="0" cellspacing="0" style="margin-top: 10px; border: 2px; border-color: #329ECF" width="670">
                        <tr>
                            <td colspan="2" height="25">
                                <div align="left">
                                    <font style="font-size: 20px; color: #329ecf; font-family: 微软雅黑">
                                        <%# DataBinder.Eval(Container.DataItem, "UserName")%>
                                        说:</font>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="height: 25px">
                                <div align="left">
                                    写于:
                                    <%# DataBinder.Eval(Container.DataItem,"CreateTime") %>
                                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2">
                                <span style="font-size: 12pt; color: #3399cc; font-family: 微软雅黑">留言信息:
                                    <%# DataBinder.Eval(Container.DataItem, "Contents")%>
                                    <br />
                                    </span>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <font color="#cc0099"></font>
                    <hr color="silver" size="5" />
                </ItemTemplate>
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <AlternatingItemStyle BackColor="White" />
                <ItemStyle BackColor="#EFF3FB" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            </asp:DataList></td>
    </tr>
    <tr>
        <td colspan="3">
            <table width="100%">
                <tr>
                    <td style="width: 71px">
                        当前页:<asp:Label ID="lblCurrentPage" runat="server" Text="1"></asp:Label>&nbsp;</td>
                    <td style="width: 41px">
                        <asp:Button ID="btnFirst" runat="server" CausesValidation="False" CommandName="first"
                            OnCommand="Page_OnClick" Text="首页" /></td>
                    <td style="width: 43px">
                        <asp:Button ID="btnPrev" runat="server" CausesValidation="False" CommandName="prev"
                            OnCommand="Page_OnClick" Text="上一页" /></td>
                    <td style="width: 1px">
                        <asp:Button ID="btnNext" runat="server" CausesValidation="False" CommandName="next"
                            OnCommand="Page_OnClick" Text="下一页" /></td>
                    <td style="width: 10px">
                        <asp:Button ID="btnLast" runat="server" CausesValidation="False" CommandName="last"
                            OnCommand="Page_OnClick" Text="尾页" /></td>
                    <td style="width: 19px">
                        共</td>
                    <td style="width: 107px">
                        <asp:Label ID="lblRecordCount" runat="server" Width="5px"></asp:Label></td>
                    <td>
                        条留言&nbsp;</td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="3">
            <font style="font-size: medium; color: black; font-family: 微软雅黑">留下您对我们的此篇资讯的建议</font></td>
    </tr>
    <tr>
        <td style="width: 80px; height: 21px;">
            留言者：</td>
        <td style="width: 300px; height: 21px;">
            <asp:TextBox ID="txtUsername" runat="server" Width="261px"></asp:TextBox></td>
        <td style="width: 220px; height: 21px;">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUsername"
                Display="Dynamic" ErrorMessage="*">昵称不能为空！</asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="width: 80px">
            评论：</td>
        <td style="width: 300px">
            <span style="font-size: 9pt; color: #993300">你最多可发表500字评论</span></td>
        <td style="width: 220px">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="FTBComment"
                Display="Dynamic" ErrorMessage="*">评论不能为空！</asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="width: 80px; height: 118px">
        </td>
        <td style="width: 300px; height: 118px">
            <asp:TextBox ID="TextBox1" runat="server" Height="150px" TextMode="MultiLine" Width="400px"></asp:TextBox></td>
        <td style="width: 220px; height: 118px">
        </td>
    </tr>
    <tr>
        <td style="width: 100px">
        </td>
        <td colspan="2">
            <asp:Button ID="btnSend" runat="server" OnClick="btnSend_Click" Text="发表留言" />
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp;&nbsp;
            <input id="reset" type="reset" value="重    置" /></td>
    </tr>
    <tr>
        <td style="width: 100px">
        </td>
        <td style="width: 100px">
        </td>
        <td style="width: 100px">
        </td>
    </tr>
</table>